<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Module mswitch</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
</head>
<body bgcolor="white">
<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<hr>

<h1>Module mswitch</h1>
<ul class="index"><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>


<h2><a name="index">Function Index</a></h2>
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#getsubs-0">getsubs/0</a></td><td></td></tr>
<tr><td valign="top"><a href="#mailbox-1">mailbox/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#publish-2">publish/2</a></td><td></td></tr>
<tr><td valign="top"><a href="#start_link-0">start_link/0</a></td><td></td></tr>
<tr><td valign="top"><a href="#start_link-1">start_link/1</a></td><td></td></tr>
<tr><td valign="top"><a href="#stop-0">stop/0</a></td><td></td></tr>
<tr><td valign="top"><a href="#subscribe-2">subscribe/2</a></td><td></td></tr>
<tr><td valign="top"><a href="#unsubscribe-2">unsubscribe/2</a></td><td></td></tr>
</table>

<h2><a name="functions">Function Details</a></h2>

<h3 class="function"><a name="getsubs-0">getsubs/0</a></h3>
<div class="spec">
<p><tt>getsubs() -&gt; {ServerPid, {busses, Busses}} | {error, Reason}</tt>
<ul class="definitions"><li><tt>Reason = rpcerror | mswitch_node_down</tt></li>
<li><tt>Busses = list()</tt></li>
</ul></p>
</div>

<h3 class="function"><a name="mailbox-1">mailbox/1</a></h3>
<div class="spec">
<p><tt>mailbox(X1) -&gt; any()</tt></p>
</div>

<h3 class="function"><a name="publish-2">publish/2</a></h3>
<div class="spec">
<p><tt>publish(Bus, Message) -&gt; {ServerPid, ok} | {error, Reason}</tt>
<ul class="definitions"><li><tt>Reason = rpcerror | mswitch_node_down | invalid_bus</tt></li>
</ul></p>
</div>

<h3 class="function"><a name="start_link-0">start_link/0</a></h3>
<div class="spec">
<p><tt>start_link() -&gt; any()</tt></p>
</div>

<h3 class="function"><a name="start_link-1">start_link/1</a></h3>
<div class="spec">
<p><tt>start_link(X1::debug) -&gt; {ok, Pid}</tt></p>
</div>

<h3 class="function"><a name="stop-0">stop/0</a></h3>
<div class="spec">
<p><tt>stop() -&gt; <a href="#type-void">void()</a></tt></p>
</div>

<h3 class="function"><a name="subscribe-2">subscribe/2</a></h3>
<div class="spec">
<p><tt>subscribe(Server::MailBox, Bus) -&gt; {ServerPid, ok} | {error, Reason}</tt>
<ul class="definitions"><li><tt>Bus = atom() | [atom()]</tt></li>
<li><tt>MailBox = {Module, Function, Server} | Server</tt></li>
<li><tt>Server = atom() | pid()</tt></li>
<li><tt>Module = atom()</tt></li>
<li><tt>Function = atom()</tt></li>
<li><tt>ServerPid = pid()</tt></li>
<li><tt>Reason = rpcerror | mswitch_node_down | invalid_bus | invalid_mailbox</tt></li>
</ul></p>
</div>

<h3 class="function"><a name="unsubscribe-2">unsubscribe/2</a></h3>
<div class="spec">
<p><tt>unsubscribe(X1::MailBox, Bus) -&gt; {ServerPid, ok} | {error, Reason}</tt></p>
</div>
<p><b>See also:</b> <a href="#subscribe-2">subscribe/2</a>.</p>
<hr>

<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<p><i>Generated by EDoc, Sep 14 2009, 19:59:17.</i></p>
</body>
</html>
